﻿@model Coleotrack.Areas.Admin.Models.ProjectViewModel


    <h1>Edit</h1>

    @using (Html.BeginForm()) {
        @Html.ValidationSummary(false, labels.ErrorsOccured)
            
            <div class="editor-label required">
                @Html.LabelFor(model => model.Project.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Project.Name)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Project.Description)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Project.Description)
            </div>
            
            <div class="editor-label required">
                @Html.LabelFor(model => model.Project.ContactPerson)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Project.ContactPerson.Id, new SelectList(Model.Users, "Id", "Name"))
            </div>

            <p>
                <input type="submit" value="Create" />
            </p>

     } 

    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
